package com.erlang4j.example.rpc;

import java.io.IOException;

import com.ericsson.otp.erlang.OtpErlangDecodeException;
import com.ericsson.otp.erlang.OtpErlangObject;
import com.erlang4j.api.Erlang4jFactory;
import com.erlang4j.api.IErlang4j;

public class Rpc {
	public static void main(String[] args) throws InterruptedException, IOException, Exception, OtpErlangDecodeException {
IErlang4j erlang4j = Erlang4jFactory.make("ErlangVm", "cookie", "JavaVm");
OtpErlangObject reply = erlang4j.rpc("simpleServer", "text", "someText");
System.out.println(reply);
	}
}
